<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <script src="vue.js"></script>
    <script>
        window.onload=function(){
            new Vue({
                el:'#box',
                data:{
                    c:{color:'red'},
                    b:{backgroundColor:'blue'},
                    a:{
                        color:'red',
                        backgroundColor:'gray'
                    }
                }
            });
        };
    </script>
</head>
<body>
    <div id="box">
        <strong :style="{color:'red'}">文字...</strong>   <br><br><br>
        <strong :style="[c,b]">文字...</strong>   <br><br><br>
        <strong :style="a">文字...</strong>
    </div>
</body>
</html>



















